@model ShivamEMR.Model.Domain.PatientDomain.PatientRepresentative

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>PatientRepresentative</legend>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">FirstName</div>
    <div class="display-field">@Model.FirstName</div>

    <div class="display-label">MiddleName</div>
    <div class="display-field">@Model.MiddleName</div>

    <div class="display-label">LastName</div>
    <div class="display-field">@Model.LastName</div>

    <div class="display-label">AltFirstName</div>
    <div class="display-field">@Model.AltFirstName</div>

    <div class="display-label">AltMiddleName</div>
    <div class="display-field">@Model.AltMiddleName</div>

    <div class="display-label">AltLastName</div>
    <div class="display-field">@Model.AltLastName</div>

    <div class="display-label">DateOfBirth</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateOfBirth)</div>

    <div class="display-label">Barcode</div>
    <div class="display-field">@Model.Barcode</div>

    <div class="display-label">MaritalSatusID</div>
    <div class="display-field">@Model.MaritalSatusID</div>

    <div class="display-label">Sex</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Sex).ToString()</div>

    <div class="display-label">MaritalStatus</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.MaritalStatus).ToString()</div>

    <div class="display-label">Picture</div>
    <div class="display-field">@(Model.Picture == null ? "None" : Model.Picture.Title)</div>

    <div class="display-label">Addresses</div>
    <div class="display-field">@(Model.Addresses == null ? "None" : Model.Addresses.Count.ToString())</div>

    <div class="display-label">Contacts</div>
    <div class="display-field">@(Model.Contacts == null ? "None" : Model.Contacts.Count.ToString())</div>

    <div class="display-label">CitizenShips</div>
    <div class="display-field">@(Model.CitizenShips == null ? "None" : Model.CitizenShips.Count.ToString())</div>

    <div class="display-label">Informations</div>
    <div class="display-field">@(Model.Informations == null ? "None" : Model.Informations.Count.ToString())</div>

    <div class="display-label">Account</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Account).ToString()</div>

    <div class="display-label">PersonRoles</div>
    <div class="display-field">@(Model.PersonRoles == null ? "None" : Model.PersonRoles.Count.ToString())</div>

    <div class="display-label">PersonStatus</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.PersonStatus).ToString()</div>

    <div class="display-label">Groups</div>
    <div class="display-field">@(Model.Groups == null ? "None" : Model.Groups.Count.ToString())</div>

    <div class="display-label">Documents</div>
    <div class="display-field">@(Model.Documents == null ? "None" : Model.Documents.Count.ToString())</div>

    <div class="display-label">Assignments</div>
    <div class="display-field">@(Model.Assignments == null ? "None" : Model.Assignments.Count.ToString())</div>

    <div class="display-label">InteractionsWith</div>
    <div class="display-field">@(Model.InteractionsWith == null ? "None" : Model.InteractionsWith.Count.ToString())</div>

    <div class="display-label">FullName</div>
    <div class="display-field">@Model.FullName</div>

    <div class="display-label">Relation</div>
    <div class="display-field">@Model.Relation</div>

    <div class="display-label">Priority</div>
    <div class="display-field">@Model.Priority</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Patient</div>
    <div class="display-field">@(Model.Patient == null ? "None" : Model.Patient.Title)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


